%nav.navbar.navbar-default{role: "navigation"}
  .container-fluid
    .navbar-header
      %button.navbar-toggle.collapsed{"data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
        %span.sr-only Toggle navigation
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      %a.navbar-brand{href: "#"} Brand
    #bs-example-navbar-collapse-1.collapse.navbar-collapse
      %ul.nav.navbar-nav
        %li=link_to 'Link', '#', class: 'active'
        %li=link_to 'Link', '#'
        %li.dropdown
          %a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
            Dropdown
            %span.caret
          %ul.dropdown-menu{role: "menu"}
            %li=link_to 'Action', '#'
            %li=link_to 'Another action', '#'
            %li=link_to 'Something else here', '#'
            %li.divider
            %li=link_to 'Separated link', '#'
            %li.divider
            %li=link_to 'One more separated link', '#'
        -#- if current_user
          %li
            = link_to "#{current_user.login} (" + t("ui.roles.#{current_user.role}") + ")", ?#
          %li.dropdown
            %a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
              Действия
              %b.caret
            %ul.dropdown-menu
              %li
                = link_to destroy_user_session_path, method: :delete do
                  %span.glyphicon.glyphicon-off
                  Выйти

